// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest } from '@/libs/axios';

//获取回收管理列表数据
export const getCreditList = (params) => {
  return getRequest(`/whitebar/credit/getByPage`, params)
}

//获取商家列表
export const getmemSto = (params) => {
  return getRequest(`/member/getmemSto`, params)
}

// 添加授信
export const addCredit = (params) => {
  return postRequest("/whitebar/credit/add", params);
};
// 编辑授信
export const editCredit = (id, params) => {
  return putRequest(`/whitebar/credit/update/${id} `, params);
};
// 删除授信
export const delCredit = (ids, params) => {
  return deleteRequest(`/whitebar/credit/delete/${ids}`, params);
};

// 审核授信
export const examineCredit = (id, params) => {
  return putRequest(`/whitebar/credit/update/${id}`, params);
};

// 查询钱包金额
export const repayment = () => {
  return postRequest(`/members/wallet/pricePc`);
};

// 查询钱包金额
export const creditRepay = (id , params, owner) => {
  return postRequest(`/whitebar/credit/repay/${id}`, params);
};
